import request from '@/utils/request'
import AgingTestAdd from '@/views/inspector/AgingTestAdd.vue'

//查询质检单
export const queryQualityInspectionService = (params : any) => {
    return request.get('/inspector/queryQualityInspection', { params })
}

//更新质检单
export const updateQualityInspectionService = (qualityInspection: any) => {
    return request.put('/inspector/updateQualityInspection', qualityInspection)
}

//分页查询老化测试
export const queryAgingTestService = (params: {
    pageNumber: number,
    pageSize: number,
    testStatus?: string,
    productName?: string
}) => {
    return request.get('/inspector/queryAgingTest', { params })
}

//添加老化测试
export const addAgingTestService = (agingTest: any) => {
    return request.post('/inspector/addAgingTest', agingTest)
}

//更新老化测试
export const updateAgingTestService = (agingTest: any) => {
    return request.put('/inspector/updateAgingTest', agingTest)
}

//完成老化测试
export const successAgingTestService = (agingTest : any) => {
    return request.put('/inspector/successAgingTest', agingTest)
}

//查询质检标准
export const listQualityStandardService = (params : any) => {
    return request.get('/inspector/listQualityStandard', { params })
}